<?php
error_reporting(E_ALL & ~E_DEPRECATED);
require_once("DB.php");
require_once("db_connect.php");

//スレッド削除
$thread_delete_id = $_GET['thread_delete_id'];
    $sql = "DELETE FROM thread WHERE thread_id = ?";
    $stmt = $db->prepare($sql);

	$db->execute($stmt, $thread_delete_id);
    if (DB::isError($db)) {
        exit($res->getMessage());
    }
	header("Location: thread.php");
